<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<title></title>
<base href="${base}/manager/" />
<link rel="stylesheet" href="css/pintuer.css">
<link rel="stylesheet" href="css/admin.css">
</head>
<script src="js/jquery-3.5.0.js"></script>
<script src="layer/layer.js"></script>
<script>
	window.addEventListener("load",function(){
		let msg = "${success}";
		if(msg!=""){
			layer.msg(msg);
			setTimeout(function(){
				location.href="CateGoryServelet?opr=query";
			},"2000")
		}
	})
	function toList(){
		location.href="CateGoryServelet?opr=query";
	}
</script>
<body>
	<div class="panel admin-panel">
		<div class="panel-head" id="add">
			<strong><span class="icon-pencil-square-o"></span>修改类别</strong>
		</div>
		<div class="padding border-bottom">
			<button type="button" class="button border-yellow" onclick="toList()">
				<span class="icon-plus-square-o"></span>放弃修改
			</button>
		</div>
		<div class="body-content">
			<form method="post" class="form-x" action="CateGoryServelet">
				<input type="hidden" name="opr" value="update" />
				<input type="hidden" value="${category.id}" name="id" />
				<div class="form-group">
					<div class="label">
						<label>商品类别名称：</label>
					</div>
					<div class="field">
						<input type="text" class="input w50" value="${category.name}" name="name" />
						<div class="tips">${msg}</div>
					</div>
					<div class="label">
						<label>商品类别状态：</label>
					</div>
					<div class="field" style="margin-top:10px">
						<input type="radio" value="正常" name="status" />正常
						<input type="radio" value="无效" name="status" />无效
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label></label>
					</div>
					<div class="field">
						<button class="button bg-main icon-check-square-o" type="submit">
							提交</button>
					</div>
				</div>
			</form>
		</div>
	</div>
</body>
</html>